<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>13-背景图片-连写</title>
		<style type="text/css">
			/**
			 * background：color image repeat position
			 */
			.box{
				width:600px;
				height:600px;
				border:1px solid red;
				margin:30px auto;
				/*设置盒子背景色为黑色，透明度为0.3,让图片不平铺并且居中显示*/
				/* background:rgba(0,0,0,.3) url(images/1.jpg) no-repeat center center; */
	
				background:url(images/1.jpg) repeat-x -100px center;
			}
		</style>
	</head>
	<body>
		<div class="box">
			
		</div>
	</body>
</html>
